<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/taglibs/iss" prefix="iss"%>
<%@ taglib prefix="a" uri="/tags/auth"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/IDEA.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript src="../js/IDEA_body.js"
	type=text/javascript></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" type=text/javascript>
     function delStationInfo()
     {  
      	var flag =  document.getElementsByName("checkbox2");
      	var str='';
      	var decide = false;   
      	     
         for(var i=0;i<flag.length;i++)
         {                
             if(flag[i].checked)
             {
                str += flag[i].value+';';
                
                decide = true;               
             }
         }
         
         if(!decide)
         {
            alert("请选择要删除的岗位！");           
         }
         else
         {
            str = str.substr(0,str.length-1);
         
           if(null != str && '' != str && "undefined" != str)
           {
              if(confirm('删除该岗位信息，对应的角色关系也会删除，请您确认?'))
              {
                 myform.action='<%=request.getContextPath()%>/station/delStationInfo.html?stationId='+str;
                 myform.submit();       
              }
           }
        }
     }
     
     function allCheckBox(obj)
     {
        var flag =  document.getElementsByName("checkbox2");               
        if(obj.checked == true)
        {
          for(var i = 0; i < flag.length; i++)
          {
             flag[i].checked = true;
          }
        }
        else
        {
            for(var i = 0; i < flag.length; i++)
          {
             flag[i].checked = false;
          }
        }
     }
     
     function cancelMyBox()
     {
        var box =  document.getElementsByName("checkbox2");
        var mybox =  document.getElementsByName("mybox");        
        var flag = true;
        
        for(var i = 0; i < box.length; i++)
        {
            if(!box[i].checked)
            {
               flag = false;
            }
        }
        if(flag)
        {
           mybox[0].checked=true;
        }
        else
        {
           mybox[0].checked=false;
        }
     }
     
</SCRIPT>
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
</HEAD>
<BODY>
<TABLE width="100%" height="100%" border=0 cellPadding=0 cellSpacing=0>
	<TBODY>
		<TR>
			<TD bgcolor="#FFFFFF" class=right_bg>
			<table width="100%" height="5" border="0" cellpadding="0"
				cellspacing="0">
				<tr>
					<td></td>
				</tr>
			</table>
			<table width="100%" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td width="20">&nbsp;</td>
					<td class="text_12_title">当前位置: <a href="#" class="blue_1">首页</a>
					&gt; <a href="#" class="blue_1">导师管理</a>&gt; 导师信息维护</td>
				</tr>
			</table>
			<table width="100%" height="10" border="0" cellpadding="0"
				cellspacing="0">
				<tr>
					<td></td>
				</tr>
			</table>
			<table width="98%" border="0" cellpadding="0" cellspacing="0"
				background="../images/bg_body_title.jpg" class="list_border1">
				<tr>
					<td width="10">&nbsp;</td>
					<td>
					<table border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td><img src="../images/pic_title_1.jpg" name="imgL1"
											width="8" height="24" id="imgL1"></td>
							<td valign="bottom" class="text_12_border">查询导师信息</td>
							<td><img src="../images/pic_title_2.jpg" name="imgR1"
											width="8" height="24" id="imgR1"></td>
						</tr>
					</table>
					</td>
				</tr>
			</table>
			<table width="98%" border="0" cellpadding="0" cellspacing="0"
				class="list_border2">
				<tr>
					<td align="center" valign="top">
					<table width="98%" height="20" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td></td>
						</tr>
					</table>
					<table width="98%" height="10" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td></td>
						</tr>
					</table>
					<TABLE width="98%" border=0 cellPadding=0 cellSpacing=0
						class=list_border>
						<TBODY>
							<TR>
								<TD class=list_title width="2"><IMG height=20
									src="../images/icon_line2.gif" width=2></TD>
								<TD class=list_title></TD>
								<TD class=list_title width="2"><IMG height=20
									src="../images/icon_line2.gif" width=2></TD>
								<TD width="15%" class=list_title>姓名</TD>
								<TD class=list_title width="2"><IMG height=20
									src="../images/icon_line2.gif" width=2></TD>
								<TD width="70%" class=list_title>导师简介</TD>
								<TD class=list_title width="2"><IMG height=20
									src="../images/icon_line2.gif" width=2></TD>
								<TD width="15%" class=list_title>操作</TD>
							</TR>
							<c:forEach var="bean" items="${tutorList}" varStatus="status">
								<c:choose>
									<c:when test="${status.index%2==0}">
										<TR class=list_td_white1>
									</c:when>
									<c:when test="${status.index%2==1}">
										<TR class=list_td_white0>
									</c:when>
								</c:choose>
								<TD></TD>
								<TD><img src="..${bean.imagePath}" WIDTH="90" HEIGHT="120"/></TD>
								<TD></TD>
								<TD align="center">${bean.tutorName}</TD>
								<TD></TD>
								<TD align="left">${bean.shortDesc}</TD>
								<TD></TD>
								<TD align="center">
								<c:if test="${userType eq 1}">
								   <a href='<%=request.getContextPath()%>/tutor/queryTutorById.html?id=${bean.id}&pages=${pages }'>修改</a>
								</c:if>
									&nbsp;&nbsp;
								<c:if test="${userType eq 1}">
									<a href='#' onclick="if(confirm('您确认要删除吗？')) window.location.href='<%=request.getContextPath()%>/tutor/deleteTutor.html?id=${bean.id}'">删除</a>
								</c:if>
								</TD>
								<TD></TD>
							</TR>

							</c:forEach>
						</TBODY>
					</TABLE>
					<table width="98%" height="24" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td align="right"><iss:navigation /></td>
						</tr>
					</table>
					<a:auth userType="1">
					<table width="98%" height="28" border="0" cellpadding="0"
						cellspacing="0">
						<tr>

							<td valign="top"><input name="Submit22" type="submit"
								class="button_normal" value="新  增"
								onClick="window.location.href='<%=request.getContextPath()%>/tutor/newTutor.html?pages=${pages }'">
							&nbsp;&nbsp; </td>
						</tr>
					</table>
					</a:auth>
			</table>
			<table width="98%" height="5" border="0" cellpadding="0"
				cellspacing="0">
				<tr>
					<td></td>
				</tr>
			</table>
			</TD>
		</TR>
	</TBODY>
</TABLE>
</BODY>
</HTML>
